import { EPhotoScale } from "./index";

interface IOptionItem<T = string> {
  label: string | number;
  value: T;
  sign?: string[];
}

// 图片类型选项
const exportPhotoType: IOptionItem<"jpg" | "png">[] = [
  {
    label: "jpg",
    value: "jpg",
  },
  {
    label: "png",
    value: "png",
  },
];

// 品牌logo筛选项
const brandLogo = [
  {
    label: "自定义",
    value: "",
    sign: [""],
  },
  {
    label: "尼康",
    value: require("../assets/img/NikonLogo.jpg"),
    sign: ["NIKON CORPORATION"],
  },
  {
    label: "佳能",
    value: require("../assets/img/CanonLogo.jpg"),
    sign: ["Canon"],
  },
];

// 时间格式
const dateFormatList = [
  {
    label: "年.月.日 时:分:秒",
    value: "YYYY.MM.DD HH:mm:ss",
  },
  {
    label: "年.月.日 时:分",
    value: "YYYY.MM.DD HH:mm",
  },
  {
    label: "年.月.日",
    value: "YYYY.MM.DD",
  },
];

// 图片比例选项
const photoScale: IOptionItem[] = Object.entries(EPhotoScale).map(
  ([key, val]) => ({
    label: key,
    value: val,
  })
);

export { exportPhotoType, photoScale, brandLogo, dateFormatList };
